using UnityEngine;
using System.Collections;

public class Menu : MonoBehaviour 
{
	public GameObject menuCamera;
	public bool play = false;
	public bool credits = false;
	public bool back = false;
	
	void Start () 
	{
		menuCamera = GameObject.FindWithTag("MainCamera");
		Screen.lockCursor = false;
		Screen.showCursor = true;
	}
	
	void OnMouseDown()
	{
		if(play == true)
		{
			Application.LoadLevel("Cena01");
		}
		
		if(credits == true)
		{
			menuCamera.transform.position = new Vector3(menuCamera.transform.position.x, menuCamera.transform.position.y, 39);
		}
		
		if(back == true)
		{
			menuCamera.transform.position = new Vector3(menuCamera.transform.position.x, menuCamera.transform.position.y, 16.5f);
		}
	}
}
